package com.btsk.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

public interface QueryDao<T>
{

    List<T> findByCriteria(final DetachedCriteria criteria);

    List<T> findByCriteria(final DetachedCriteria criteria, final int firstResult, final int maxResults);

    int findCountsBycriteria(final DetachedCriteria criteria);
}